{assign var=form value=$form->toArray()}

{form action=`$form._action` name=`$form._formname` method=`$form._method` enctype="multipart/form-data"}
	<table width='100%'>
	{foreach from=$form._fields item=field key=cid}
		<tr><td width='200'>{$field.label}</td><td>{call_input_plugin type=$field.type name=$field.name add_params=$field} {assign var=fname value=$field.name} {if $messages.$fname}<br/><label class='error' for='{$fname}_id' style='font-size:10px;'>{foreach from=$messages.$fname.message item=err}{$err}<br/>{/foreach}</label>{/if}</td></tr>
	{/foreach}
	</table>
{/form}